//
//  main.m
//  0921Runtime
//
//  Created by 丁建忠 on 15/12/30.
//  Copyright © 2015年 丁建忠. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <objc/runtime.h>
#import <objc/objc.h>
#import <objc/message.h>
#import "Student.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
//        Student *stu = [[Student alloc] init];
        //获取属性列表,可以用来
        Student *stu = [[Student alloc] init];
        Class cls = stu.class;
        const char *className = class_getName(cls);
        NSLog(@"%s", className);

//        stu.name = @"";
//        [stu setName:@"12"];
//        NSData *data = [NSKeyedArchiver archivedDataWithRootObject:stu];
//        Student *student = [NSKeyedUnarchiver unarchiveObjectWithData:data];
//        NSLog(@"%@", student.name);
//        [stu performSelector:@selector(teach)];

        
    }
    return 0;
}
